
#include <decls.hpp>
#include <exceptions.hpp>
#include <natives.h>
#include <notifier.hpp>

#include <cubefs/api/models/map.hpp>
#include <cubefs/core/tools/types/dispatcher.hpp>

using namespace cubefs::tools;
using namespace cubefs::api;

JNIEXPORT jlong JNICALL METADATA_PKG(MetadataGroup, GetItem) (JNIEnv *env, jclass clazz, jlong handle, jint idx)
{
    CUBEFS_EXC_BEGIN

    MetadataGroup* obj = Handle2Ptr<MetadataGroup>(handle);

    return Ptr2Handle(obj->GetItem(idx));

    CUBEFS_EXC_HANDLE
    return 0;
}
